﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020007A5 RID: 1957
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class GetPrivateChatHistoryCsReq : IMessage<GetPrivateChatHistoryCsReq>, IMessage, IEquatable<GetPrivateChatHistoryCsReq>, IDeepCloneable<GetPrivateChatHistoryCsReq>, IBufferMessage
	{
		// Token: 0x170018F7 RID: 6391
		// (get) Token: 0x060057E7 RID: 22503 RVA: 0x000ED2E9 File Offset: 0x000EB4E9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<GetPrivateChatHistoryCsReq> Parser
		{
			get
			{
				return GetPrivateChatHistoryCsReq._parser;
			}
		}

		// Token: 0x170018F8 RID: 6392
		// (get) Token: 0x060057E8 RID: 22504 RVA: 0x000ED2F0 File Offset: 0x000EB4F0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return GetPrivateChatHistoryCsReqReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170018F9 RID: 6393
		// (get) Token: 0x060057E9 RID: 22505 RVA: 0x000ED302 File Offset: 0x000EB502
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return GetPrivateChatHistoryCsReq.Descriptor;
			}
		}

		// Token: 0x060057EA RID: 22506 RVA: 0x000ED309 File Offset: 0x000EB509
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetPrivateChatHistoryCsReq()
		{
		}

		// Token: 0x060057EB RID: 22507 RVA: 0x000ED311 File Offset: 0x000EB511
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetPrivateChatHistoryCsReq(GetPrivateChatHistoryCsReq other) : this()
		{
			this.targetId_ = other.targetId_;
			this.contactId_ = other.contactId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x060057EC RID: 22508 RVA: 0x000ED342 File Offset: 0x000EB542
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetPrivateChatHistoryCsReq Clone()
		{
			return new GetPrivateChatHistoryCsReq(this);
		}

		// Token: 0x170018FA RID: 6394
		// (get) Token: 0x060057ED RID: 22509 RVA: 0x000ED34A File Offset: 0x000EB54A
		// (set) Token: 0x060057EE RID: 22510 RVA: 0x000ED352 File Offset: 0x000EB552
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint TargetId
		{
			get
			{
				return this.targetId_;
			}
			set
			{
				this.targetId_ = value;
			}
		}

		// Token: 0x170018FB RID: 6395
		// (get) Token: 0x060057EF RID: 22511 RVA: 0x000ED35B File Offset: 0x000EB55B
		// (set) Token: 0x060057F0 RID: 22512 RVA: 0x000ED363 File Offset: 0x000EB563
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint ContactId
		{
			get
			{
				return this.contactId_;
			}
			set
			{
				this.contactId_ = value;
			}
		}

		// Token: 0x060057F1 RID: 22513 RVA: 0x000ED36C File Offset: 0x000EB56C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as GetPrivateChatHistoryCsReq);
		}

		// Token: 0x060057F2 RID: 22514 RVA: 0x000ED37A File Offset: 0x000EB57A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(GetPrivateChatHistoryCsReq other)
		{
			return other != null && (other == this || (this.TargetId == other.TargetId && this.ContactId == other.ContactId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x060057F3 RID: 22515 RVA: 0x000ED3B8 File Offset: 0x000EB5B8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.TargetId != 0U)
			{
				num ^= this.TargetId.GetHashCode();
			}
			if (this.ContactId != 0U)
			{
				num ^= this.ContactId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x060057F4 RID: 22516 RVA: 0x000ED410 File Offset: 0x000EB610
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x060057F5 RID: 22517 RVA: 0x000ED418 File Offset: 0x000EB618
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x060057F6 RID: 22518 RVA: 0x000ED424 File Offset: 0x000EB624
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.TargetId != 0U)
			{
				output.WriteRawTag(32);
				output.WriteUInt32(this.TargetId);
			}
			if (this.ContactId != 0U)
			{
				output.WriteRawTag(40);
				output.WriteUInt32(this.ContactId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x060057F7 RID: 22519 RVA: 0x000ED480 File Offset: 0x000EB680
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.TargetId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.TargetId);
			}
			if (this.ContactId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.ContactId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x060057F8 RID: 22520 RVA: 0x000ED4D8 File Offset: 0x000EB6D8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(GetPrivateChatHistoryCsReq other)
		{
			if (other == null)
			{
				return;
			}
			if (other.TargetId != 0U)
			{
				this.TargetId = other.TargetId;
			}
			if (other.ContactId != 0U)
			{
				this.ContactId = other.ContactId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x060057F9 RID: 22521 RVA: 0x000ED528 File Offset: 0x000EB728
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x060057FA RID: 22522 RVA: 0x000ED534 File Offset: 0x000EB734
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 32U)
				{
					if (num != 40U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.ContactId = input.ReadUInt32();
					}
				}
				else
				{
					this.TargetId = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04002249 RID: 8777
		private static readonly MessageParser<GetPrivateChatHistoryCsReq> _parser = new MessageParser<GetPrivateChatHistoryCsReq>(() => new GetPrivateChatHistoryCsReq());

		// Token: 0x0400224A RID: 8778
		private UnknownFieldSet _unknownFields;

		// Token: 0x0400224B RID: 8779
		public const int TargetIdFieldNumber = 4;

		// Token: 0x0400224C RID: 8780
		private uint targetId_;

		// Token: 0x0400224D RID: 8781
		public const int ContactIdFieldNumber = 5;

		// Token: 0x0400224E RID: 8782
		private uint contactId_;
	}
}
